
var openWindow = function (url, name, iWidth, iHeight) {
	var url; // 转向网页的地址;
	var name; // 网页名称，可为空;
	var iWidth; // 弹出窗口的宽度;
	var iHeight; // 弹出窗口的高度;
	var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
	var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
	window.open(url, name, "height=" + iHeight + ",,innerHeight=" + iHeight + ",width=" + iWidth + ",innerWidth=" + iWidth + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no");
};
function getParameter(paraStr, url) {
	var result = "";   
    //获取URL中全部参数列表数据   
	var str = "&" + url.split("?")[1];
	var paraName = paraStr + "=";   
    //判断要获取的参数是否存在   
	if (str.indexOf("&" + paraName) != -1) {   
        //如果要获取的参数到结尾是否还包含“&”   
		if (str.substring(str.indexOf(paraName), str.length).indexOf("&") != -1) {   
            //得到要获取的参数到结尾的字符串   
			var TmpStr = str.substring(str.indexOf(paraName), str.length);   
            //截取从参数开始到最近的“&”出现位置间的字符   
			result = TmpStr.substr(TmpStr.indexOf(paraName), TmpStr.indexOf("&") - TmpStr.indexOf(paraName));
		} else {
			result = str.substring(str.indexOf(paraName), str.length);
		}
	} else {
		result = "\u65e0\u6b64\u53c2\u6570";
	}
	var l = (result.replace("&", ""));
	if(l)
		return l.split("=")[1]; 
}
